package com.cc2019.buke.user.Activity.help;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.cc2019.buke.R;

public class HelpActivity extends AppCompatActivity {
    private Button about_users;
    private Button about_functions;
    private Button about_connections;
    private Button about_suggestions;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_help);

        about_users=(Button)findViewById(R.id.about_user);
        about_functions=(Button)findViewById(R.id.about_function);
        about_connections=(Button)findViewById(R.id.about_connection);
        about_suggestions=(Button)findViewById(R.id.about_suggestion);

        about_users.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(HelpActivity.this, AboutUserActivity.class);
                startActivity(intent);
            }
        });

        about_functions.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(HelpActivity.this, AboutFunctionActivity.class);
                startActivity(intent);
            }
        });

        about_connections.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(HelpActivity.this, AboutConnectionActivity.class);
                startActivity(intent);
            }
        });
        about_suggestions.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(HelpActivity.this, AboutSuggestionActivity.class);
                startActivity(intent);
            }
        });
    }
}